package com.example.springframework.util;

public class ClassUtils {
    public static ClassLoader getDefaultClassLoader(){
        ClassLoader classLoader=null;
        try {
            classLoader=Thread.currentThread().getContextClassLoader();
        }catch (Throwable ex){

        }
        if (classLoader==null){
            classLoader=ClassUtils.class.getClassLoader();
        }
        return classLoader;
    }
}
